//
//  MAPolyline+Extension.m
//  HMSport
//
//  Created by 李旭杰 on 2017/4/23.
//  Copyright © 2017年 LiXujie. All rights reserved.
//

#import "MAPolyline+Extension.h"
#import <objc/runtime.h>

@implementation MAPolyline (Extension)
- (void)setSpeed:(CGFloat)speed{
    
    //关联对象
    objc_setAssociatedObject(self, @"speed", @(speed), OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

- (CGFloat)speed{
    
    return [objc_getAssociatedObject(self, @"speed") floatValue];
}
@end
